package de.codi.read;

import java.net.URI;

import de.codi.exception.CodiException;


/**
 * Used to store source and target ontology to be available for
 * each subsequent step required during similaroity computation.
 * 
 */
public class Storage
{

    public static StoredOntology source = null;
    public static StoredOntology target = null;


    public static void storeSource(URI sourceURI) throws CodiException
    {
        source = new StoredOntology(sourceURI);
    }


    public static void storeTarget(URI targetURI) throws CodiException
    {
        target = new StoredOntology(targetURI);
    }


    /**
     * Checks if source and target have been loaded.
     * 
     * @return True if source an target have been loaded, false otherwise.
     */
    public static boolean isComplete()
    {
        if((source != null) && (source != null)) {
            return true;
        } else {
            return false;
        }
    }

}
